{-# LANGUAGE CPP                        #-}
{-# LANGUAGE ForeignFunctionInterface   #-}
{-# OPTIONS -Wall #-}


--------------------------------------------------------------------------------
-- |
-- Module      :  Lambola.Foreign.Java.Constants
-- Copyright   :  (c) Stephen Tetley 2014
-- License     :  BSD3
--
-- Maintainer  :  Stephen Tetley <stephen.tetley@gmail.com>
-- Stability   :  highly unstable
-- Portability :  GHC
--
-- Constants.
--
--------------------------------------------------------------------------------

module Lambola.Foreign.Java.Constants where

#include <jni.h>

import Lambola.Foreign.Java.BasicTypes

jni_FALSE       :: JBoolean
jni_FALSE       = #const JNI_FALSE

jni_TRUE        :: JBoolean
jni_TRUE        = #const JNI_TRUE



jni_OK          :: JInt
jni_OK          = #const JNI_OK

jni_ERR         :: JInt
jni_ERR         = #const JNI_ERR

jni_EDETACHED   :: JInt  
jni_EDETACHED   = #const JNI_EDETACHED

jni_EVERSION    :: JInt
jni_EVERSION    = #const JNI_EVERSION

jni_ENOMEM      :: JInt
jni_ENOMEM      = #const JNI_ENOMEM

jni_EEXIST      :: JInt
jni_EEXIST      = #const JNI_EEXIST

jni_EINVAL      :: JInt
jni_EINVAL      = #const JNI_EINVAL


jni_COMMIT      :: JInt
jni_COMMIT      = #const JNI_COMMIT

jni_ABORT       :: JInt
jni_ABORT       = #const JNI_ABORT
